import http from '../../utils/httpRequest';
import axios from 'axios'
export function policy() {
    return new Promise((resolve, reject) => {
        axios.get("/upload/oss/policy").then(({ data }) => {
            resolve(data);
        }).catch(({ err }) => {
            console.log(err);
            reject(err);
        })
        // http({
        //     url: "http://119.45.46.115:8898/upload/oss/policy",
        //     method: "get",
        //     params: http.adornParams({})
        // }).then(({ data }) => [
        //     resolve(data)
        // ])
    });
}